﻿#include <iostream>
#include <vector>
using namespace std;
int m = 0;
vector<int> arr;
void print(int y)
{
	for (int i = 1; i < y; i++)
	{
		cout << arr[i] << "+";
	}
	cout << arr[y] << endl;
}
void dfs(int x)
{
	for (int i = arr[x - 1]; i <= m; i++)
	{
		arr[x] = i;
		m -= i;
		if (m == 0)
		{
			print(x);
		}
		else
		{
			dfs(x + 1);
		}
		m += i;
	}
}
int main()
{
	while (true)
	{
        cin >> m;
        arr.resize(m + 1);
        arr[0] = 1;
        dfs(1);
		cout << "=========================================" << endl;
	}
	
	return 0;
}
